package com.xxjqr.rbac.controller;


import com.github.pagehelper.PageInfo;
import com.xxjqr.rbac.entity.pojo.TbOperLog;
import com.xxjqr.rbac.enums.BusinessStatusEnum;
import com.xxjqr.rbac.enums.OperTypeEnum;
import com.xxjqr.rbac.mapper.TbSysOperLogMapper;
import com.xxjqr.rbac.service.TbSysOperLogService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 丁昌江
 * @since 2021-05-05
 */
@RestController
@RequestMapping("oper")
@AllArgsConstructor
public class TbOperLogController {

    private final TbSysOperLogService operLogService;


    @GetMapping("getLogs")
    public PageInfo<TbOperLog> getLogs(String title, String operName, OperTypeEnum operType
    , BusinessStatusEnum status,String beginTime,String endTime) {
        return operLogService.selectList(title,operName,operType,status,beginTime,endTime);
    }
}
